package com.grandtech.insurance.domain.beifen;

import java.io.Serializable;

/**
 * @author 
 * 养殖信息表
 */
public class DbYzxx implements Serializable {
    /**
     * 主键id
     */
    private String id;

    /**
     * 用户证件号
     */
    private String idcode;

    /**
     * 养殖类型
     */
    private String yzdm;

    /**
     * 养殖类型名称
     */
    private String yzmc;

    /**
     * 养殖规模（头/只）
     */
    private Integer sl;

    /**
     * 年份
     */
    private String nf;

    /**
     * 项目编码
     */
    private String xmbm;

    private String farm_name;

    public String getFarm_name() {
        return farm_name;
    }

    public void setFarm_name(String farm_name) {
        this.farm_name = farm_name;
    }

    private static final long serialVersionUID = 1L;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getIdcode() {
        return idcode;
    }

    public void setIdcode(String idcode) {
        this.idcode = idcode;
    }

    public String getYzdm() {
        return yzdm;
    }

    public void setYzdm(String yzdm) {
        this.yzdm = yzdm;
    }

    public String getYzmc() {
        return yzmc;
    }

    public void setYzmc(String yzmc) {
        this.yzmc = yzmc;
    }

    public Integer getSl() {
        return sl;
    }

    public void setSl(Integer sl) {
        this.sl = sl;
    }

    public String getNf() {
        return nf;
    }

    public void setNf(String nf) {
        this.nf = nf;
    }

    public String getXmbm() {
        return xmbm;
    }

    public void setXmbm(String xmbm) {
        this.xmbm = xmbm;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DbYzxx other = (DbYzxx) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getIdcode() == null ? other.getIdcode() == null : this.getIdcode().equals(other.getIdcode()))
            && (this.getYzdm() == null ? other.getYzdm() == null : this.getYzdm().equals(other.getYzdm()))
            && (this.getYzmc() == null ? other.getYzmc() == null : this.getYzmc().equals(other.getYzmc()))
            && (this.getSl() == null ? other.getSl() == null : this.getSl().equals(other.getSl()))
            && (this.getNf() == null ? other.getNf() == null : this.getNf().equals(other.getNf()))
            && (this.getXmbm() == null ? other.getXmbm() == null : this.getXmbm().equals(other.getXmbm()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getIdcode() == null) ? 0 : getIdcode().hashCode());
        result = prime * result + ((getYzdm() == null) ? 0 : getYzdm().hashCode());
        result = prime * result + ((getYzmc() == null) ? 0 : getYzmc().hashCode());
        result = prime * result + ((getSl() == null) ? 0 : getSl().hashCode());
        result = prime * result + ((getNf() == null) ? 0 : getNf().hashCode());
        result = prime * result + ((getXmbm() == null) ? 0 : getXmbm().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", idcode=").append(idcode);
        sb.append(", yzdm=").append(yzdm);
        sb.append(", yzmc=").append(yzmc);
        sb.append(", sl=").append(sl);
        sb.append(", nf=").append(nf);
        sb.append(", xmbm=").append(xmbm);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}